package com.zd01.mapper;

import com.zd01.model.BookModel;
import com.zd01.model.PageResult;
import com.zd01.model.SearchModel;
import com.zd01.model.StudentModel;
import org.apache.ibatis.annotations.*;

import java.awt.print.Book;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {
    List<StudentModel> getALL(SearchModel searchModel);

    void add(BookModel bookModel);
    void addStudent(List<StudentModel> studentModelList);

    void deletes(List<Integer> bookids);


    void deleteStudents(List<Integer> studentids);
    BookModel getBookStudent(Integer id);

    void update(BookModel bookModel);

    // 统计
    @MapKey("value = sexx")
    List<Map<String, Object>> getSexCount();

    @MapKey("value = sex")
    List<Map<String, Object>> getSexCount2();

}
